//
//  OrderHalfButton.h
//  B2C
//
//  Created by 李小龙 on 2017/8/15.
//  Copyright © 2017年 lixiaolong. All rights reserved.
//

#import <UIKit/UIKit.h>

typedef NS_ENUM(NSUInteger, OrderButtonType) {
    OrderButtonTypePay,     // 付款
    OrderButtonTypeCancel,  // 取消订单
    OrderButtonTypeAlert,   // 提醒发货
    OrderButtonTypeCheck,   // 查看物流
    OrderButtonTypeSure,    // 确认收货
    OrderButtonTypeDelete,  // 删除订单
    OrderButtonTypeEvaluate,// 评价
    OrderButtonTypeRefundDetail,  // 退款详情
};

@interface OrderHalfButton : UIButton

@property (nonatomic, assign) OrderButtonType type;

/**
 初始化方法

 @param type 按钮类型
 @param frame 按钮坐标、大小
 @param buttonTitle 按钮标题
 @param color 文字颜色
 @param borderColor 边框颜色
 @return 按钮
 */
+ (instancetype)orderButtonWithType:(OrderButtonType)type
                              frame:(CGRect)frame
                        buttonTitle:(NSString *)buttonTitle
                              color:(UIColor *)color
                        borderColor:(UIColor *)borderColor;

@end
